home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 32 / Mac Magazin and MacEasy Magazine CD - Issue 32.iso / Grafik & Text / OzTeX3.0 / TeX-inputs / LaTeX / contrib / tugboat / ltugcomn.sty < prev    next >
Text File  |  1997-03-26  |  14KB  |  388 lines

  1. %%
  2. %% This is file `ltugcomn.sty',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% tugboat.dtx  (with options: `common,latex,latex2e,ltugcomn')
  8. %% 
  9. %% Copyright (C) 1994,1995,1996 TeX Users Group
  10. %% All rights reserved.
  11. %% 
  12. %% This file is part of the Tugboat package.
  13. %% -----------------------------------------
  14. %% 
  15. %% This is a generated file.  Permission is granted to to customize the
  16. %% declarations in this file to serve the needs of your installation.
  17. %% However, no permission is granted to distribute a modified version of
  18. %% this file under its original name.
  19. %% 
  20. %% 
  21. \NeedsTeXFormat{LaTeX2e}[1994/12/01]
  22.    \ProvidesPackage{ltugcomn}
  23.                    [1996/10/14 v1.4b
  24.                           TUGboat `common macros' package%
  25.                    ]
  26. \IfFileExists{mflogo.sty}%
  27.   {\RequirePackage{mflogo}}%
  28.   {\PackageWarning{ltugcomn}
  29.      {Package mflogo.sty not available --\MessageBreak
  30.        Proceeding to emulate mflogo.sty}
  31.    \DeclareRobustCommand\logofamily{%
  32.      \not@math@alphabet\logofamily\relax
  33.      \fontencoding{U}\fontfamily{logo}\selectfont}
  34.    \DeclareTextFontCommand{\textlogo}{\logofamily}
  35.    \def\MF{\textlogo{META}\-\textlogo{FONT}\@}
  36.    \def\MP{\textlogo{META}\-\textlogo{POST}\@}
  37.    \DeclareFontFamily{U}{logo}{}
  38.    \DeclareFontShape{U}{logo}{m}{n}{
  39.      <8> <9> gen * logo
  40.      <10> <10.95> <12> <14.4> <17.28> <20.74> <24.88> logo10
  41.    }{}
  42.    \DeclareFontShape{U}{logo}{m}{sl}{
  43.      <8> <9> gen * logosl
  44.      <10> <10.95> <12> <14.4> <17.28> <20.74> <24.88> logosl10
  45.    }{}
  46.    \DeclareFontShape{U}{logo}{m}{it}{
  47.      <-> ssub * logo/m/sl
  48.    }{}%
  49.   }
  50. \def\makeescape#1{\catcode`#1=\z@}
  51. \def\makebgroup#1{\catcode`#1=\@ne}
  52. \def\makeegroup#1{\catcode`#1=\tw@}
  53. \def\makemath  #1{\catcode`#1=\thr@@}
  54. \def\makealign #1{\catcode`#1=4 }
  55. \def\makeeol   #1{\catcode`#1=5 }
  56. \def\makeparm  #1{\catcode`#1=6 }
  57. \def\makesup   #1{\catcode`#1=7 }
  58. \def\makesub   #1{\catcode`#1=8 }
  59. \def\makeignore#1{\catcode`#1=9 }
  60. \def\makespace #1{\catcode`#1=10 }
  61. \def\makeletter#1{\catcode`#1=11 }
  62. \chardef\other=12
  63. \let\makeother\@makeother
  64. \def\makeactive#1{\catcode`#1=13 }
  65. \def\makecomment#1{\catcode`#1=14 }
  66. \def\savecat#1{%
  67.   \expandafter\xdef\csname\string#1savedcat\endcsname{\the\catcode`#1}}
  68. \def\restorecat#1{\catcode`#1=\csname\string#1savedcat\endcsname}
  69. \def\SaveCS#1{\expandafter\let\csname saved@@#1\expandafter\endcsname
  70.   \csname#1\endcsname}
  71. \def\RestoreCS#1{\expandafter\let\csname#1\expandafter\endcsname
  72.   \csname saved@@#1\endcsname}
  73. \def\plaintubstyle{plain}
  74. \def\latextubstyle{latex}
  75. \providecommand\hb@xt@{\hbox to}
  76. \providecommand\textsuperscript[1]{\ensuremath{\m@th
  77.                                      ^{\mbox{\fontsize\sf@size\z@
  78.                                          \selectfont #1}}}}
  79. \def\AllTeX{(\La\kern-.075em)\kern-.075em\TeX}
  80. \def\AMS{American Mathematical Society}
  81. \def\AmS{$\mathcal{A}$\kern-.1667em\lower.5ex\hbox
  82.     {$\mathcal{M}$}\kern-.125em$\mathcal{S}$}
  83. \def\AmSLaTeX{\AmS-\LaTeX}
  84. \def\AmSTeX{\AmS-\TeX}
  85. \def\aw{A\kern.1em-W}
  86. \def\AW{Addison\kern.1em-\penalty\z@\hskip\z@skip Wesley}
  87. \def\BibTeX{\textsc{Bib}\kern-.08em\TeX}
  88. \def\CandT{\textsl{Computers \& Typesetting}}
  89. \def\CTAN{\acro{CTAN}}
  90. \def\DTD{\acro{DTD}}
  91. \def\DVItoVDU{DVIto\kern-.12em VDU}
  92. \DeclareRobustCommand\eTeX{\ensuremath{\varepsilon}-\kern-.125em\TeX}
  93. \def\HTML{\acro{HTML}}
  94. \def\ISBN{\acro{ISBN}}
  95. \def\ISSN{\acro{ISSN}}
  96. \def\JTeX{\leavevmode\hbox{\lower.5ex\hbox{J}\kern-.18em\TeX}}
  97. \def\JoT{\textsl{The Joy of \TeX}}
  98. \def\LAMSTeX{L\raise.42ex\hbox{\kern-.3em
  99.                    $\m@th$\fontsize\sf@size\z@\selectfont
  100.                    $\m@th\mathcal{A}$}%
  101.     \kern-.2em\lower.376ex\hbox{$\m@th\mathcal{M}$}\kern-.125em
  102.     {$\m@th\mathcal{S}$}-\TeX}
  103. \newcommand{\La}%
  104.    {L\kern-.36em
  105.         {\setbox0\hbox{T}%
  106.          \vbox to\ht0{\hbox{$\m@th$%
  107.                             \csname S@\f@size\endcsname
  108.                             \fontsize\sf@size\z@
  109.                             \math@fontsfalse\selectfont
  110.                             A}%
  111.                       \vss}%
  112.         }}
  113. \def\Mc{\setbox\TestBox=\hbox{M}M\vbox
  114.    to\ht\TestBox{\hbox{c}\vfil}} %  for Robert McGaffey
  115. \def\mf{\textsc{Metafont}}
  116. \def\MFB{\textsl{The \MF book}}
  117. \def\mp{MetaPost}
  118. \DeclareTextSymbol{\textohm}{OT1}{'012}
  119. \DeclareTextSymbolDefault{\textohm}{OT1}
  120. \newcommand\OMEGA{\textohm}
  121. \DeclareRobustCommand{\OTP}{\OMEGA\acro{TP}}
  122. \def\mtex{T\kern-.1667em\lower.424ex\hbox{\^E}\kern-.125emX\@}
  123. \DeclareRobustCommand\NTS{$\mathcal{N}$\lower.5ex\hbox
  124.     {$\mathcal{T}$}$\mathcal{S}$\@}
  125. \def\pcMF{\leavevmode\raise.5ex\hbox{p\kern-.3\p@ c}MF\@}
  126. \def\PCTeX{PC\thinspace\TeX}
  127. \def\pcTeX{\leavevmode\raise.5ex\hbox{p\kern-.3\p@ c}\TeX}
  128. \def\Pas{Pascal}
  129. \def\PiC{P\kern-.12em\lower.5ex\hbox{I}\kern-.075emC\@}
  130. \def\PiCTeX{\PiC\kern-.11em\TeX}
  131. \def\plain{\texttt{plain}}
  132. \def\POBox{P.\thinspace O.~Box }
  133. \def\PS{{Post\-Script}}
  134. \def\SC{Steering Committee}
  135. \def\SGML{\acro{SGML}}
  136. \def\SliTeX{\textrm{S\kern-.06em\textsc{l\kern-.035emi}%
  137.                      \kern-.06em\TeX}}
  138.  \def\slMF{\textsl{\MF}} % should never be used
  139.  \def\stTeX{\textsc{st}\kern-0.13em\TeX}
  140. \def\TANGLE{\texttt{TANGLE}\@}
  141. \def\TB{\textsl{The \TeX book}}
  142. \def\TP{\textsl{\TeX}: \textsl{The Program}}
  143. \DeclareRobustCommand\TeX{T\kern-.1667em\lower.424ex\hbox{E}\kern-.125emX\@}
  144. \def\TeXhax{\TeX hax}
  145. \def\TeXMaG{\TeX M\kern-.1667em\lower.5ex\hbox{A}%
  146.    \kern-.2267emG\@}
  147. \def\TeXtures{\textit{Textures}}
  148. \let\Textures=\TeXtures
  149. \def\TeXXeT{\TeX-{}-\XeT}
  150. \def\ttn{\textsl{TTN}\@}
  151. \def\TTN{\textsl{\TeX{} and TUG News}\@}
  152. \let\texttub\textsl              % redefined in other situations
  153. \def\TUB{\texttub{TUGboat}}
  154. \def\TUG{\TeX\ \UG}
  155. \def\tug{\acro{TUG}}
  156. \def\UG{Users Group}
  157. \def\UNIX{\acro{UNIX}}
  158. \def\VAX{V\kern-.12em A\kern-.1em X\@}
  159. \def\VorTeX{V\kern-2.7\p@\lower.5ex\hbox{O\kern-1.4\p@ R}\kern-2.6\p@\TeX}
  160. \def\XeT{X\kern-.125em\lower.424ex\hbox{E}\kern-.1667emT\@}
  161. \def\WEB{\texttt{WEB}\@}
  162. \def\WEAVE{\texttt{WEAVE}\@}
  163. \newlinechar=`\^^J
  164. \normallineskiplimit=\p@
  165. \clubpenalty=10000
  166. \widowpenalty=10000
  167. \def\NoParIndent{\parindent=\z@}
  168. \newdimen\normalparindent
  169. \normalparindent=20\p@
  170. \def\NormalParIndent{\global\parindent=\normalparindent}
  171. \NormalParIndent
  172. \def\BlackBoxes{\overfullrule=5\p@}
  173. \def\NoBlackBoxes{\overfullrule=\z@}
  174. \def\newline{\hskip\z@\@plus\pagewd\break}
  175. \edef\allowhyphens{\noexpand\hyphenpenalty\the\hyphenpenalty\relax
  176.   \noexpand\exhyphenpenalty\the\exhyphenpenalty\relax}
  177. \def\nohyphens{\hyphenpenalty\@M\exhyphenpenalty\@M}
  178. \newbox\T@stBox                 \newbox\TestBox
  179. \newcount\T@stCount             \newcount\TestCount
  180. \newdimen\T@stDimen             \newdimen\TestDimen
  181. \newif\ifT@stIf                 \newif\ifTestIf
  182. \def\ifundefined#1{\expandafter\ifx\csname#1\endcsname\relax }
  183. \newif\iftop@           \newif\ifbot@
  184. \def\topsmash{\top@true\bot@false\smash@}
  185. \def\botsmash{\top@false\bot@true\smash@}
  186. \def\smash{\top@true\bot@true\smash@}
  187. \def\smash@{\relax\ifmmode\def\next{\mathpalette\mathsm@sh}%
  188.         \else\let\next\makesm@sh\fi \next }
  189. \def\finsm@sh{\iftop@\ht\z@\z@\fi\ifbot@\dp\z@\z@\fi\box\z@}
  190. \long\def\ulap#1{\vbox to \z@{\vss#1}}
  191. \long\def\dlap#1{\vbox to \z@{#1\vss}}
  192. \def\xlap#1{\hb@xt@\z@{\hss#1\hss}}
  193. \long\def\ylap#1{\vbox to \z@{\vss#1\vss}}
  194. \long\def\zlap#1{\ylap{\xlap{#1}}}
  195. \def\basezero{\baselineskip\z@skip \lineskip\z@skip}
  196. \def\nullhrule{\hrule \@height\z@ \@depth\z@ \@width\z@ }
  197. \def\nullvrule{\vrule \@height\z@ \@depth\z@ \@width\z@ }
  198. \def\makestrut[#1;#2]{\vrule \@height#1 \@depth#2 \@width\z@ }
  199. \def\drawoutlinebox[#1;#2;#3]{\T@stDimen=#3
  200.         \vbox to#1{\hrule \@height\T@stDimen \@depth\z@
  201.             \vss\hb@xt@#2{\vrule \@width\T@stDimen
  202.                 \hfil\makestrut[#1;\z@]%
  203.                 \vrule \@width\T@stDimen}\vss
  204.             \hrule \@height\T@stDimen \@depth\z@}}
  205. \newcount\hours
  206. \newcount\minutes
  207. \def\SetTime{\hours=\time
  208.         \global\divide\hours by 60
  209.         \minutes=\hours
  210.         \multiply\minutes by 60
  211.         \advance\minutes by-\time
  212.         \global\multiply\minutes by-1 }
  213. \SetTime
  214. \def\now{\number\hours:\ifnum\minutes<10 0\fi\number\minutes}
  215. \def\Now{\today\ \now}
  216. \newif\ifPrelimDraft
  217. \def\midrtitle{\ifPrelimDraft {\textsl{preliminary draft, \Now}}\fi}
  218. \newdimen\raggedskip    \raggedskip=\z@
  219. \newdimen\raggedstretch \raggedstretch=5em    % ems of font set now (10pt)
  220. \newskip\raggedparfill  \raggedparfill=\z@\@plus 1fil
  221. \def\raggedspaces{\spaceskip=.3333em \relax \xspaceskip=.5em \relax }
  222. \def\raggedright{%
  223.   \nohyphens
  224.   \rightskip=\raggedskip\@plus\raggedstretch \raggedspaces
  225.   \parfillskip=\raggedparfill }
  226. \def\raggedleft{%
  227.   \nohyphens
  228.   \leftskip=\raggedskip\@plus\raggedstretch \raggedspaces
  229.   \parfillskip=\z@skip }
  230. \def\raggedcenter{%
  231.   \nohyphens
  232.   \leftskip=\raggedskip\@plus\raggedstretch
  233.   \rightskip=\leftskip \raggedspaces
  234.   \parindent=\z@ \parfillskip=\z@skip }
  235. \def\normalspaces{\spaceskip\z@skip \xspaceskip\z@skip }
  236. \def~{\unskip\nobreak\ \ignorespaces}
  237. \def\boxcs#1{\box\csname#1\endcsname}
  238. \def\setboxcs#1{\setbox\csname#1\endcsname}
  239. \def\newboxcs#1{\expandafter\newbox\csname#1\endcsname}
  240. \let\gobble\@gobble
  241. \def\vellipsis{%
  242.   \leavevmode\kern0.5em
  243.   \raise\p@\vbox{\baselineskip6\p@\vskip7\p@\hbox{.}\hbox{.}\hbox{.}}
  244.   }
  245. \def\bull{\vrule \@height 1ex \@width .8ex \@depth -.2ex }
  246. \def\cents{{\rm\raise.2ex\rlap{\kern.05em$\scriptstyle/$}c}}
  247. \def\Dag{\raise .6ex\hbox{$\scriptstyle\dagger$}}
  248. \def\careof{\leavevmode\hbox{\raise.75ex\hbox{c}\kern-.15em
  249.                 /\kern-.125em\smash{\lower.3ex\hbox{o}}} \ignorespaces}
  250. \DeclareRobustCommand\sfrac[1]{\@ifnextchar/{\@sfrac{#1}}%
  251.                                             {\@sfrac{#1}/}}
  252. \def\@sfrac#1/#2{\leavevmode\kern.1em\raise.5ex
  253.          \hbox{$\m@th\mbox{\fontsize\sf@size\z@
  254.                            \selectfont#1}$}\kern-.1em
  255.          /\kern-.15em\lower.25ex
  256.           \hbox{$\m@th\mbox{\fontsize\sf@size\z@
  257.                             \selectfont#2}$}}
  258. \DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}}
  259. \def\thinskip{\hskip 0.16667em\relax}
  260. \def\endash{--}
  261. \def\emdash{\endash-}
  262. \def\d@sh#1#2{\unskip#1\thinskip#2\thinskip\ignorespaces}
  263. \def\dash{\d@sh\nobreak\endash}
  264. \def\Dash{\d@sh\nobreak\emdash}
  265. \def\ldash{\d@sh\empty{\hbox{\endash}\nobreak}}
  266. \def\rdash{\d@sh\nobreak\endash}
  267. \def\Ldash{\d@sh\empty{\hbox{\emdash}\nobreak}}
  268. \def\Rdash{\d@sh\nobreak\emdash}
  269. \def\hyph{-\penalty\z@\hskip\z@skip }
  270. \def\slash{/\penalty\z@\hskip\z@skip }
  271. \def\nth#1{%
  272.     \def\reserved@a##1##2\@nil{\ifcat##1n%
  273.            0%
  274.    \let\reserved@b\ensuremath
  275.       \else##1##2%
  276.    \let\reserved@b\relax
  277.       \fi}%
  278.     \TestCount=\reserved@a#1\@nil\relax
  279.     \ifnum\TestCount <0 \multiply\TestCount by\m@ne \fi % subdue negatives
  280.     \T@stCount=\TestCount
  281.     \divide\T@stCount by 100 \multiply\T@stCount by 100
  282.     \advance\TestCount by-\T@stCount     % n mod 100
  283.     \ifnum\TestCount >20 \T@stCount=\TestCount
  284.       \divide\T@stCount by 10 \multiply\T@stCount by 10
  285.       \advance\TestCount by-\T@stCount   % n mod 10
  286.     \fi
  287.      \reserved@b{#1}%
  288.        \textsuperscript{\ifcase\TestCount th%    0th
  289.                         \or   st%                1st
  290.                         \or   nd%                2nd
  291.                         \or   rd%                3rd
  292.                         \else th%                nth
  293.                         \fi}%
  294.      }
  295. \def\Review{\@ifnextchar:{\@Review}{\@Review:}}
  296. \def\@Review:{\@ifnextchar[%]
  297.   {\@Rev}%
  298.   {\@Rev[Book review]}}
  299. \def\@Rev[#1]#2{{\ignorespaces#1\unskip:\enspace\ignorespaces
  300.                                         \slshape\mdseries#2}}
  301. \def\reviewitem{\addvspace{\BelowTitleSkip}%
  302.   \def\revauth##1{\def\therevauth{##1, }\ignorespaces}%
  303.   \def\revtitle##1{\def\therevtitle{{\slshape##1}. }\ignorespaces}%
  304.   \def\revpubinfo##1{\def\therevpubinfo{##1.}\ignorespaces}%
  305.   }
  306. \def\endreviewitem{{\noindent\interlinepenalty=10000
  307.   \therevauth\therevtitle\therevpubinfo\endgraf}%
  308.   \vskip\medskipamount
  309.   }
  310. \def\booktitle#1{{\slshape#1\/}}
  311. \newcount\issueseqno            \issueseqno=-1
  312. \def\v@lx{\gdef\volx{Volume~\volno~(\volyr), No.~\issno}}
  313. \def\volyr{}
  314. \def\volno{}
  315. \def\vol #1,#2.{\gdef\volno{#1\unskip}%
  316.         \gdef\issno{\ignorespaces#2\unskip}%
  317.         \setbox\TestBox=\hbox{\volyr}%
  318.         \ifdim \wd\TestBox > .2em \v@lx \fi }
  319. \def\issdate #1#2 #3.{\gdef\issdt{#1#2 #3}\gdef\volyr{#3}%
  320.         \gdef\bigissdt{#1{\smc\uppercase{#2}} #3}%
  321.         \setbox\TestBox=\hbox{\volno}%
  322.         \ifdim \wd\TestBox > .2em \v@lx \fi }
  323. \vol 0, 0.
  324. \issdate Thermidor, 2001.
  325. \def\tubissue#1{\@ifnextchar(%)
  326.   {\@tubissue@b{#1}}
  327.   {\@tubissue@a{#1}}}
  328. \def\@tubissue@b#1(#2){\@tubissue@a{#1}{#2}}
  329. \def\@tubissue@a#1#2%
  330.   {\TUB~#1, no.~#2}
  331. \def\infil@{\jobname}
  332. \def\Input #1 {\ifnum\issueseqno<0
  333.     \def\infil@{#1}%
  334.   \else
  335.     \def\infil@{tb\number\issueseqno#1}
  336.   \fi
  337.   \edef\jobname{\infil@}\@readFLN
  338.   \@@input \infil@\relax
  339.   \if@RMKopen
  340.     \immediate\closeout\@TBremarkfile\@RMKopenfalse
  341.   \fi
  342. }
  343. \newif\if@RMKopen        \@RMKopenfalse
  344. \newwrite\@TBremarkfile
  345. \def\@TBremark#1{%
  346.   \if@RMKopen
  347.   \else
  348.     \@RMKopentrue\immediate\openout\@TBremarkfile=\infil@.rmk
  349.   \fi
  350.   \toks@={#1}%
  351.   \immediate\write\@TBremarkfile{^^J\the\toks@}%
  352.   \immediate\write16{^^JTBremark:: \the\toks@^^J}%
  353. }
  354. \let\TBremark=\gobble
  355. \def\TBEnableRemarks{\let\TBremark\@TBremark}
  356. \def\TUBedit#1{}
  357. \def\TUBfilename#1#2{\expandafter\def\csname file@@#1\endcsname{#2}}
  358. \InputIfFileExists{\jobname.fln}%
  359.      {\TBInfo{Reading alternative file file \jobname.fln}}{}
  360. \def\@tubfilename#1{\expandafter\ifx\csname file@@#1\endcsname\relax
  361.   #1\else\csname file@@#1\endcsname\fi}
  362. \def\fileinput#1{\@@input\@tubfilename{#1} }
  363. \def\pagexrefON#1{%
  364.         \write-1{\def\expandafter\noexpand\csname#1\endcsname{\number\c@page}}%
  365.         \write\ppoutfile{%
  366.                 \def\expandafter\noexpand\csname#1\endcsname{\number\c@page}}%
  367.         }
  368. \def\PageXrefON#1{%
  369.         \immediate\write-1{\def\expandafter
  370.                         \noexpand\csname#1\endcsname{\number\c@page}}%
  371.         \immediate\write\ppoutfile{\def\expandafter
  372.                         \noexpand\csname#1\endcsname{\number\c@page}}}
  373. \def\pagexrefOFF#1{}
  374. \let\pagexref=\pagexrefOFF
  375. \def\PageXrefOFF#1{}
  376. \let\PageXref=\PageXrefOFF
  377. \def\xreftoON#1{%
  378.   \ifundefined{#1}%
  379.     ???\TBremark{Need cross reference for #1.}%
  380.   \else\csname#1\endcsname\fi}
  381. \def\xreftoOFF#1{???}
  382. \let\xrefto=\xreftoOFF
  383. \let\TBdriver\gobble
  384. \hyphenation{Eijk-hout Hara-lam-bous man-u-script man-u-scripts}
  385. \endinput
  386. %%
  387. %% End of file `ltugcomn.sty'.
  388.